/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ntb.models;

import com.ntb.entities.Sales;
import java.util.Iterator;
import java.util.List;

/**
 *
 * @author AnhTuan
 */
public interface SalesDAO {

    public Iterator getCountList(int year);

    public int countAll();

    public List getStatusList();

    public String getStatusName(String status);

    public List getPaymentModeList();

    public String getPaymentModeName(int mode);

    public Iterator<Sales> getList();

    public Iterator<Sales> getList(String saleId, int paymentMode, String cusName, String cusAddress, String cusPhone,
            String flatId, String flatName, String createdDateFrom, String createdDateTo, String saleStatus, int page);

    public int getPageCount(String saleId, int paymentMode, String cusName, String cusAddress, String cusPhone,
            String flatId, String flatName, String createdDateFrom, String createdDateTo, String saleStatus);

    public Sales getRow(int id);

    public int add(Sales object);

    public int update(Sales object);

    public int updateToRegisterdSD(int id, int sdCharge);

    public int delete(int id);

    public int deleteIn(String arrayIds);
}
